# a=询问
a = int(input())
# b=询问
b = int(input())
# c=询问
c = int(input())
# 如果a>b并且c是负数
if (a < b and c < 0 or a > b and c > 0):
    # 打印
    print('Wrong Numbers')
#如果c是负数并且b>a
elif (c < 0 and b < a):
    #c变成正数
    c = (0 - c)
    #d从0开始
    d = a
    #循环直到d+c<b
    while (d >= b):
        #打印c
        print(d)
        #c-d
        d = d - c
#否则
else:
    #d从0开始
    d = a
    #循环直到d+c<b
    while(d <= b):
        #打印
        print(d)
        #c+d
        d = d + c
    
